import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import ElementUI from 'element-ui';
import './permission';
import 'element-ui/lib/theme-chalk/index.css'; // 默认主题
import Avue from '@smallwei/avue';
import '@smallwei/avue/lib/index.css';
import '../src/assets/css/icon.css';
import '@/assets/css/main.less';
import VueCodeMirror from 'vue-codemirror';
import 'codemirror/lib/codemirror.css';
Vue.use(VueCodeMirror);
import basicContainer from './components/basic-container/main';
// 引入mock
import '../mock/index';
Vue.config.productionTip = false;
Vue.use(ElementUI, { size: 'medium' });
Vue.use(Avue, {
  size: 'small',
  menuType: 'text'
});

// 注册全局容器
Vue.component('basicContainer', basicContainer);

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
